import { request } from './request.js';
//获取耗材列表
// 非得使用params
export const getActivityList = (params) => {
  return request({
    url: 'Maintain/SelectActivity/btn-activitysearch',
    method: 'get',
    params,
  });
};
//新增
export const addActivity = (data) => {
  return request({
    url: 'Maintain/AddActivity/btn-activityadd',
    method: 'post',
    data,
  });
};
//修改
export const editActivity = (data) => {
  return request({
    url: 'Maintain/UpdateActivity/btn-activityupdate',
    method: 'post',
    data,
  });
};
//删除
export const delActivity = (params) => {
  return request({
    url: 'Maintain/DeleteActivity/btn-activitydelete',
    method: 'get',
    params,
  });
};
